package com.teacher.pojo.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zfm
 * @since 2021-07-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "StuClass对象", description = "")
public class StuClass extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "班级名称")
    private String className;

    @ApiModelProperty(value = "10->正常 20->毕业班")
    private Integer status;

    private Integer year;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long departmentId;

    // 是否体育专业
    private Boolean isPe;

    // 是否实验班
    private Boolean isExperiment;
}
